package cn.idongjia.live.exception;

import cn.idongjia.exception.Result;
import cn.idongjia.exception.ResultCodes;

/**
 * 直播授权异常
 * Created by wuqiang on 16/4/6.
 */
public class LiveAuthException extends BaseException {

    private static final long serialVersionUID = 2271671520240377786L;

    public LiveAuthException() {
        this(ResultCodes.AUTH_LIVE_FAIL);
    }

    public LiveAuthException(Result result) {
        super(result);
    }

    public LiveAuthException(String message) {
        super(message);
    }

    public LiveAuthException(String message, Throwable cause) {
        super(message, cause);
    }

    public LiveAuthException(Throwable cause) {
        super(cause);
    }

    public LiveAuthException(String message, Throwable cause,
                             boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }

    public LiveAuthException(String msg, Object... args) {
        this(LiveResult.getAuthFail(msg, args));
    }
}
